{% extends "base.html" %}
{% load i18n %}

{% block title %}{% blocktrans with forum.title as title %}New Thread in {{ title }}{% endblocktrans %}{% endblock %}

{% block extrahead %}
<link rel="alternate" type="application/rss+xml" title="{{ forum.title }} Posts via RSS" href="{% url forum_index %}rss/{{ forum.slug }}/" />
<link rel="alternate" type="application/atom+xml" title="{{ forum.title }} Posts via ATOM" href="{% url forum_index %}atom/{{ forum.slug }}/" />
{% endblock %}

{% block sidebar %}

		
        <div>
            <div class="box-top1"><span></span></div>
            <div class="box1">
	      		<h2>操作菜单</h2>
	      		<ul>
	      			<li><a href="{%url link_create%}">添加新链接</a></li>
	      		</ul>
	      		<h2>链接分类</h2>
	      		<ul>
	      			<li>分类1</li>
	      			<li>分类1</li>
	      			<li>分类1</li>
	      		</ul>
                <div class="clear"></div>
			</div>
            <div class="box-bot"><span></span></div>
	      </div>
        <div class="clear"></div>  
				
        <div>
            <div class="box-top1"><span></span></div>
            <div class="box1">
							{% block userprofile_content_related %}
							<h2>访问最多</h2>
							<ul>
								<li>1</li>
								<li>2</li>
							</ul>
							<h2>最近访问</h2>
							<ul>
								<li>1</li>
								<li>2</li>
							</ul>
                            {% endblock %}

                <div class="clear"></div>
	      </div>
            <div class="box-bot"><span></span></div>
	    </div>
        <div class="clear"></div>  

{% endblock sidebar %}




{% block content %}



<div id="userprofile_content">
	{% block userprofile_content %}
	<h2>{% trans "Create a Link" %}{{ msg }}</h2>
	<form method='post' action='./'>
	{% if form.errors %}<ul>{{ form.errors.as_ul }}</ul>{% endif %}
	<p><label>{% trans "Posting As" %}</label><span>{{ user.username }}</span></p>
	{{ form.as_p }}
	<p><input type='submit' value='提交' /></p>
	</form>

	{% endblock %}		
</div>

			
{% endblock %}
